<!-- 查看回复 -->
<template>
	<view class="content">
		<view class="bottom_item" v-for="(item,index) in datalist" :key="index">
			<view class="title" v-if="item.userType==1">
				<view class="br"></view>
				我的回答：
			</view>
			<view class="title" v-else>
				<view class="br"></view>
				老师回复：
			</view>
			<view class="essay">
				<view class="essay_content">
					{{item.answersContent}}
				</view>
				<view class="essay_time">{{item.answersTime}}</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				datalist: [],
				datas: '',
				courseKey:''
			}
		},
		onLoad(e) {
			this.courseKey=e.courseKey;
			this.datas = JSON.parse(decodeURIComponent(e.data));
			this.datalist = this.datas.answers;
		},
		methods:{
		
		}
	}
</script>

<style lang="scss">
	.content {
		position: absolute;
		width: 100%;
		height: 100%;
		background: rgba(250, 250, 250, 1);
	}

	.bottom_item {
		display: flex;
		width: 100%;
		background: #FFFFFF;
		flex-direction: column;
		justify-content: center;
		margin-bottom: 20upx;

		.title {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			width: 92%;
			margin: auto;
			height: 76upx;
			color: #000000;
			font-size: 36upx;
			font-weight: 500;

			.br {
				margin-right: 10upx;
				width: 6upx;
				height: 34upx;
				background: rgba(0, 213, 162, 1);
			}

		}

		.essay {
			width: 92%;
			margin: auto;
			display: flex;
			flex-direction: column;

			.essay_content {
				width: 100%;
				line-height: 44upx;
				color: rgba(51, 51, 51, 1);
				font-size: 34upx;
				margin-top: 15upx;
				margin-bottom: 20upx;
			}

			.essay_time {
				height: 50upx;
				font-size: 26upx;
				line-height: 40upx;
				color: #C2C2C2;
			}

			.btnList {
				width: 120upx;
				height: 40upx;
				margin-left: 40upx;
				background: rgba(242, 242, 242, 1);
				border-radius: 20upx;
				color: rgba(153, 153, 153, 1);
				font-size: 26upx;
				text-align: center;
				line-height: 40upx;
			}
		}

	}

	.btn {
		width: 100%;
		height: 120upx;
		background: #FFFFFF;
		position: fixed;
		bottom: 0;
		display: flex;
		align-items: center;

		.btn_content {
			margin: auto;
			width: 92%;
			height: 80upx;
			background: rgba(0, 213, 162, 1);
			border-radius: 8upx;
			text-align: center;
			line-height: 80upx;
			font-size: 34upx;
			color: #FFFFFF;
		}
	}
</style>
